package com.hucais.etl.common.bean

case class TmpQueryInfo(
                         isbn: String,
                         store_name: String,
                         selling_price: java.lang.Float,
                         store_pricing: java.lang.Float,
                         book_comments: java.lang.Long,
                         store_num: java.lang.Long,
                         slogan: String,
                         store_comments: String,
                         conditions: String,
                         book_num: String,
                         book_name: String,
                         author: String,
                         pricing: String,
                         category: String,
                         publishing_house: String,
                         publishing_time: String,
                         impression: String,
                         edition: String,
                         description: String,
                         sales: String,
                         binding_layout: String,
                         format: String,
                         pages: String,
                         paper: String,
                         suits: String
                       )

case class DwsBookQueryInfo(
                             //基本属性字段部分1-10
                             first_channel: String,
                             second_channel: String,
                             store: String,
                             store_comments: java.lang.Long,
                             isbn: String,
                             book_name: String,
                             category: String,
                             slogan: String,
                             book_description: String,
                             languages: String,
                             //基本属性字段部分11-20
                             word_count: java.lang.Long,
                             book_comments: java.lang.Long,
                             store_pricing: java.lang.Float,
                             selling_price: java.lang.Float,
                             publishing_house: String,
                             publishing_time: String,
                             printing_time: String,
                             shelf_time: String,
                             edition: String,
                             impression: String,
                             //基本属性字段部分21-30
                             inventory: java.lang.Long,
                             sales: java.lang.Long,
                             author: String,
                             shuppites: String,
                             format: String,
                             is_suit: String,
                             suits: String,
                             binding_layout: String,
                             pages: java.lang.Long,
                             papers: String,
                             //逻辑计算字段
                             selling_stores: Long,
                             published_year_range: String,
                             published_year_integral: Long,
                             comments_range: String,
                             comments_integral: Long,
                             premium_range: String,
                             premium_integral: Long,
                             selling_stores_range: String,
                             selling_stores_integral: Long,
                             total_integral: Long,
                             //系统维护字段
                             create_type: String,
                             create_time: String,
                             update_time: String
                           )
/**
 * DWD-书籍详情
 */
case class DwdBookBaseInfo(
                            first_channel: String,
                            second_channel: String,
                            isbn: String,
                            book_name: String,
                            first_category: String,
                            second_category: String,
                            third_category: String,
                            fourth_category: String,
                            author: String,
                            publishing_house: String,
                            publishing_time: String,
                            selling_price: Float,
                            min_selling_price: Float,
                            avg_selling_price: Float,
                            store_cnt:Long,
                            store_pricing: Float,
                            year_sales: Long,
                            discount: Float,
                            brand: String,
                            douban_score: Double,
                            grader_cnt: Long,
                            create_time: String
                          )


case class DwdBookBaseInfoWithAuthorPopularity(
                                                first_channel: String,
                                                second_channel: String,
                                                isbn: String,
                                                book_name: String,
                                                first_category: String,
                                                second_category: String,
                                                third_category: String,
                                                fourth_category: String,
                                                author: String,
                                                publishing_house: String,
                                                publishing_time: String,
                                                selling_price: Float,
                                                min_selling_price:Float,
                                                avg_selling_price:Float,
                                                store_cnt:Long,
                                                store_pricing: Float,
                                                year_sales: Long,
                                                discount: Float,
                                                brand: String,
                                                douban_score: Double,
                                                grader_cnt: Long,
                                                total_followers: Long,
                                                published_num: Long,
                                                university: String
                                              )

case class DdBookSelectInfo(
                             first_channel: String,
                             second_channel: String,
                             isbn: String,
                             book_name: String,
                             first_category: String,
                             second_category: String,
                             third_category: String,
                             fourth_category: String,
                             author: String,
                             publishing_house: String,
                             publishing_time: String,
                             selling_price: Float,
                             min_selling_price:Float,
                             avg_selling_price:Float,
                             store_cnt:Long,
                             store_pricing: Float,
                             year_sales: Long,
                             discount: Float,
                             brand: String,
                             douban_score: Float,
                             year_sales_integral: Float,
                             author_popularity_integral: Float,
                             douban_score_integral: Float,
                             publishing_house_integral: Float,
                             brand_integral: Float,
                             total_integral: Float,
                             create_time: String
                           )

/**
 * 作者知名度详情
 *
 * @param author      作者
 * @param followers   粉丝量
 * @param university  毕业院校
 * @param book_number 历史出书数
 * @param award_book  获奖作品
 * @param award_msg   获奖信息
 */
case class AuthorPopularityDetail(
                                   author: String,
                                   followers: Long,
                                   university: String,
                                   book_number: Long,
                                   award_book: String,
                                   award_msg: String
                                 )


